org.eclipse.vtp.desktop.media.core
Class DynamicContentCreatorPanel

java.lang.Object
  extended by org.eclipse.vtp.desktop.media.core.ContentCreatorPanel
      extended by org.eclipse.vtp.desktop.media.core.DynamicContentCreatorPanel
Direct Known Subclasses:
DateContentCreatorPanel, DigitsContentCreatorPanel, FileContentCreatorPanel, LettersContentCreatorPanel, MoneyContentCreatorPanel, NumberContentCreatorPanel, OrdinalContentCreatorPanel, ReferenceContentCreatorPanel, TextContentCreatorPanel

public abstract class DynamicContentCreatorPanel
extends ContentCreatorPanel

DynamicContentCreatorPanel.

Author:
Lonnie Pryor

Constructor Summary
protected DynamicContentCreatorPanel()
          Creates a new DynamicContentCreatorPanel.
 
Method Summary
 void createControls(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.swt.widgets.Control createDynamicControls(org.eclipse.swt.widgets.Composite parent)
           
protected abstract  org.eclipse.swt.widgets.Control createStaticControls(org.eclipse.swt.widgets.Composite parent)
           
 java.lang.String getDynamicSelection()
          Returns the current dynamic selection.
 java.lang.String getFormat()
           
 boolean isDynamic()
          Returns true if this panel displays variable selection.
 boolean isDynamicSelected()
          Returns true if the dynamic value is currently selected.
 void setDynamicSelected(boolean dynamicSelected)
          Sets the selected value to dynamic or static.
 void setDynamicSelection(java.lang.String dynamicSelection)
          Sets the current dynamic selection.
 void setInitialContent(Content content)
           
 void setVariables(java.util.List variables)
          Sets the list of variables that are available.
 
Methods inherited from class org.eclipse.vtp.desktop.media.core.ContentCreatorPanel
createContent, getControl, getMediaProvider, setControl, setMediaProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicContentCreatorPanel

protected DynamicContentCreatorPanel()
Creates a new DynamicContentCreatorPanel.

Method Detail

isDynamic

public boolean isDynamic()
Returns true if this panel displays variable selection.

Returns:
True if this panel displays variable selection.

isDynamicSelected

public boolean isDynamicSelected()
Returns true if the dynamic value is currently selected.

Returns:
True if the dynamic value is currently selected.

getDynamicSelection

public java.lang.String getDynamicSelection()
Returns the current dynamic selection.

Returns:
The current dynamic selection.

setVariables

public void setVariables(java.util.List variables)
Sets the list of variables that are available.

Parameters:
variables - The list of variables that are available.

setDynamicSelected

public void setDynamicSelected(boolean dynamicSelected)
Sets the selected value to dynamic or static.

Parameters:
dynamicSelected - True if the dynamic value should be selected.

setDynamicSelection

public void setDynamicSelection(java.lang.String dynamicSelection)
Sets the current dynamic selection.

Parameters:
dynamicSelection - The dynamic selection to choose.

getFormat

public java.lang.String getFormat()

createControls

public final void createControls(org.eclipse.swt.widgets.Composite parent)
Specified by:
createControls in class ContentCreatorPanel

createDynamicControls

protected org.eclipse.swt.widgets.Control createDynamicControls(org.eclipse.swt.widgets.Composite parent)

setInitialContent

public void setInitialContent(Content content)
Specified by:
setInitialContent in class ContentCreatorPanel

createStaticControls

protected abstract org.eclipse.swt.widgets.Control createStaticControls(org.eclipse.swt.widgets.Composite parent)